//
//  HomeChannels.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/02
//  Copyright (c) ltq. All rights reserved.
//

#import "HomeChannels.h"
#import "HomeJoin.h"
@implementation HomeChannels

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"join"]) {
        HomeJoin *join = [HomeJoin modelWithDic:value];
        _join = join;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        _ID = value;
    }
}


@end
